/**
 * @date 2017年7月11日
 * @Author SeppSong
 */
package com.zhys.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.zhys.dao.IUserDAO;
import com.zhys.model.UserDTO;

/**
 * @author SeppSong
 *
 */
@Repository("UserDAOImpl")
public class UserDaoImpl implements IUserDAO{
	
	@Autowired
    @Qualifier("sqlSessionTemplate")
    private SqlSessionTemplate sqlSessionTemplate;

	@Override
	public UserDTO getUser(String userName) {
		UserDTO userDTO= this.sqlSessionTemplate.selectOne("user.getUser",userName);
		return userDTO;
	}

}
